namespace FolderCompare.Models;

public abstract class CgFileSystemInfo
{
        public CgFileSystemInfo()
        { }

        protected CgFileSystemInfo(FileSystemInfo info)
        {
            Name = info.Name;
            FullName = info.FullName;
            CreationTime = info.CreationTime;
            LastWriteTime = info.LastWriteTime;
        }

        public int Index { get; set; }
        public string Name { get; set; } = default!;
        public string FullName { get; set; } = default!;

        public DateTime? CreationTime { get; set; }

        public DateTime? LastWriteTime { get; set; }
        public virtual long? Length { get; set; }
        public bool IsDirectory { get; set; }
        public ECompareResult Result { get; set; }
    }

public enum ECompareResult
{
        默认值,
        匹配,
        不匹配,
        较旧的,
        孤立,
        空,
}